package com.api

trait Speack {
  def speak(name:String): String ={
    name+":"+"说话了"
  }
}
trait Listen {
  def listen(name:String): String ={
    name+":"+"听到了说话声"
  }
}
class Person1() extends Speack with Listen{

}
object Main{
  def main(args: Array[String]): Unit = {
    val person=new Person1()


    println(person.speak("张三"))
    println(person.listen("李四"))
  }
}
